package com.ls.lsbase.utils;import android.content.Context;import android.widget.Toast;public class ToastUtil {	/**	 * Toast类	 */	private static Toast toast;	public static void showShort(Context context, String msg) {		if (toast == null) {			toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT);		} else {			toast.setText(msg);		}		toast.show();	}	public static void showLong(Context context, String msg) {		if (toast == null) {			toast = Toast.makeText(context, msg, Toast.LENGTH_LONG);		} else {			toast.setText(msg);		}		toast.show();	}}